
			<div class="tab-pane " id="live">
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">小程序直播</div>
					<div class="panel-body">
						{if $_G['isSuperAdmin']}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播间ID</label>
							<div class="col-sm-8 col-xs-12">
								<input type="number" class="form-control" placeholder="" name="lid"
									   value="{$config['livedata']['liveid']}">
								<span class="help-block">-1关闭直播 开启直播：有房间号填写房间号，没有房间内号填写0</span>
							</div>
						</div>
						{if $id>0}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">商品链接</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control" placeholder="" value="{$xcxurl}">
							</div>
						</div>
						{/if}
						{else}
						<input type="hidden" name="lid" value="{$config['livedata']['liveid']}">
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播开始时间</label>
							<div class="col-sm-3 col-md-3 col-lg-3 col-xs-12">
								{php echo view_form_field_date('livetime',date("Y-m-d H:i:s", $config['livedata']['livetime']),true);}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播状态</label>
							<div class="col-sm-3 col-md-3 col-lg-3 col-xs-12">
								<select class="form-control" name="livestatus">
									<option value="102" {if $config['livedata']['livestatus'] == 102 }selected="selected"{/if}>102: 未开始</option>
									<option value="101" {if $config['livedata']['livestatus'] == 101 }selected="selected"{/if}>101: 直播中</option>
									<option value="103" {if $config['livedata']['livestatus'] == 103 }selected="selected"{/if}>103: 已结束</option>
									<option value="104" {if $config['livedata']['livestatus'] == 104 }selected="selected"{/if}>104: 禁播</option>
									<option value="105" {if $config['livedata']['livestatus'] == 105 }selected="selected"{/if}>105: 暂停中</option>
									<option value="106" {if $config['livedata']['livestatus'] == 106 }selected="selected"{/if}>106: 异常</option>
									<option value="107" {if $config['livedata']['livestatus'] == 107 }selected="selected"{/if}>107：已过期</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">开启回放</label>
							<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
								<label class="radio-inline">
									<input name="relive" value="0" {if $config['livedata']['relive']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="relive" value="1" {if $config['livedata']['relive']==1} checked="checked"{/if} type="radio"> 开启
								</label>
							</div>
						</div>
						<!-- <input id="sendnotify" type="hidden" value="$config['livedata']['sendnotify']" name="sendnotify"/>
				{if $config['livedata']['liveid'] > -1}
				<div>
					<script>
						function sendNotify(){
							let notifyTemplate = "{php echo $system['livetemplate'];}"
							let selectWXapp = <?php echo $system['wxapp']?>;
							if(notifyTemplate == ""){
								alert("请前往参数设置>小程序 设置通知模版");
								return;
							}
							if(selectWXapp == "" || selectWXapp == 0){
								alert("请前往参数设置>小程序 绑定小程序");
								return;
							}
							$.ajax({
							url:"{php echo createWebUrl('theme');}",
							data:{
								op:"sendnotify",
								id:{$themeid}
							},
							success:function(e){
								document.getElementById('sendnotify').value = 1;
								alert("发送完成");
							}
						});
						}
					</script>
						<input type="button" value="发送通知" class="btn btn-primary col-lg-2" onclick="sendNotify()">
				</div>
				{/if} -->
					</div>
				</div>

				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">直播预热图文内容{if $isold==true && !$_G['isSuperAdmin']}<span style="color: red">(已禁用,如需修改请联系工作人员)</span>{/if}</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播预热</label>
							<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
								<label class="radio-inline">
									<input name="yure" value="0" {if $config['livedata']['yure']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="yure" value="1" {if $config['livedata']['yure']==1} checked="checked"{/if} type="radio"> 开启
								</label>
								<span class="help-block">在直播前，通过下面的图文先引导客户进行订阅直播</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播预热标题</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control" placeholder="" name="lname"
									   value="{$config['livedata']['lname']}">
								<span class="help-block"></span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播预热主图</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('liveheadlogo',$config['liveheadlogo']);}
								<span class="help-block">为空则为活动主图。</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">直播预热内容</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_ueditor('livecontent', $config['livecontent']);}
								<span class="help-block">为空则为活动内容</span>
							</div>
						</div>
					</div>
				</div>

			</div>